<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:richfaces="http://richfaces.ajax4jsf.org/rich"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ajax="https://ajax4jsf.dev.java.net/ajax">

<ui:composition template="/WEB-INF/template.xhtml">
	<ui:define name="topnav">
		<ui:include src="/include/admin_nav.xhtml" />
	</ui:define>
	<ui:define name="sidebar">
		<ui:include src="/include/left_nav.xhtml" />
	</ui:define>
	<ui:define name="body">
		<div class="body-title">Property Kind Manager</div>
		<h:form styleClass="register-new-user">
		  <a href="editKindOfProperty.seam?kid=-1">Add New</a>
		</h:form>
	<h:form>	
		<rich:dataTable value="#{kindItems}" var="vkindofproperty"
			rendered="#{not empty kindItems}" width="100%">
			<h:column>
				<f:facet name="header">ID</f:facet>
				<h:outputText value="#{vkindofproperty.id}" />
			</h:column>
			<h:column>
				<f:facet name="header">Property Kind's Name</f:facet>
				<h:outputLink value="editKindOfProperty.seam?kid=#{vkindofproperty.id}">#{vkindofproperty.kindName}</h:outputLink> 
			</h:column>
			<h:column>
				<f:facet name="header">Description</f:facet>
				<h:outputText value="#{vkindofproperty.kindDesc}" />
			</h:column>
			<h:column>
				<f:facet name="header">Delete</f:facet>
				<s:link id="delete" value="Delete" actionListener="#{kindOfProperty.deleteItem}"/>
			</h:column>
		</rich:dataTable>		
		</h:form>
	</ui:define>
</ui:composition>

</html>